import httpInstance from '../utils/http';

/**
 * @description 取消关注
 * @param ownerId 自己的id
 * @param targetId 被取消关注的用户id
 * @returns
 */
export function cancelAttentionApi(ownerId, targetId) {
  return httpInstance.delete('/fans/cancelAttention', {
    params: {
      ownerId,
      targetId,
    },
  });
}


/**
 * @description 获得该粉丝是否也是我的关注接口
 * @param 自己的id
 * @param 被关注的用户id
 * @returns
 */
export function getFansIsMyAttentionApi(ownerId, targetId) {
  return httpInstance.get('/fans/isMyAttention', {
    params: {
      ownerId,
      targetId,
    },
  });
}